﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jayden.Dll.PathFinding;

namespace Jayden.Dll.PathFinding
{
	public interface PathNodeCondition
	{
		bool IsValidNode(PathNode node);
	}

	public class PathNodeTarget : PathNodeCondition
	{
		private PathNode m_Target;
		public PathNodeTarget(PathNode target) { m_Target = target; }
		public PathNode Target { get { return m_Target; } }
		public bool IsValidNode(PathNode node) { return m_Target.Equals(node); }
	}

	public interface PathFinder
	{
		List<PathInformation> FindPath(PathNode start, PathNode end);
		List<PathInformation> FindPath(PathNode start, PathNodeCondition condition);
	}
}
